HTTP |
Persistence · Compression · HTTPS |
Request methods |
OPTIONS · GET · HEAD · POST · PUT · DELETE · TRACE · CONNECT |
Header fields |
Cookie · ETag · Location · Referer |
DNT · X-Forwarded-For |
Status codes |
301 Moved permanently |
302 Found |
303 See Other |
403 Forbidden |
404 Not Found |
The HTTP response status code 301 Moved Permanently is used for permanent redirection. This status code should be used with the location header. RFC 2616 states that:
Contents |
Client request:
GET /index.php HTTP/1.1 Host: www.example.org
Server response:
HTTP/1.1 301 Moved Permanently Location: http://www.example.org/index.asp
Google recommends using a 301 redirect to change the URL of a page as it is shown in search engine results.[1]